package com.liuym.admin.repository.mapper;

import com.liuym.admin.repository.model.entity.Admin;

import java.util.List;

public interface AdminMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    /**
     * 根据用户名获得管理员信息
     *
     * @param userName
     * @return
     */
    Admin getAdminByUserName(String userName);

    List<Admin> getAllAdmin();
}